home *** CD-ROM | disk | FTP | other *** search
/ The Sunday Times: The Month 2004 August / The Sunday Times - The Month 2004-08.iso / pc / engine / modules / pa_search_may.swf / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2004-06-24  |  1.4 KB  |  44 lines

  1. function init()
  2. {
  3.    play();
  4. }
  5. function openSearchPage(linktoSend)
  6. {
  7.    Tardis.webPageOpen(linktoSend);
  8. }
  9. function submitListing()
  10. {
  11.    lingo("Flsh_openEmail(\"arts@pa.press.net\")");
  12. }
  13. function submitForm()
  14. {
  15.    var dateQuery = "&year=" + yearMC.optionValue + "&thisday=" + dayMC.optionValue + "&month=" + monthMC.optionValue;
  16.    var _loc1_ = "&maincat=all";
  17.    var _loc3_ = "";
  18.    var titleQuery = "";
  19.    var _loc2_ = "";
  20.    var sortQuery = "";
  21.    var areaQuery = "";
  22.    var runQuery = "&daystorun=" + periodSelectMC.optionValue;
  23.    if(eventSelectorMC.optionValue != null)
  24.    {
  25.       _loc1_ = "&maincat=" + eventSelectorMC.optionValue;
  26.    }
  27.    if(venueMC.searchFF != venueMC.defaultValue && venueMC.searchFF != "")
  28.    {
  29.       _loc3_ = "&venue=" + escape(venueMC.searchFF);
  30.    }
  31.    if(titleMC.searchFF != titleMC.defaultValue && titleMC.searchFF != "")
  32.    {
  33.       titleQuery = "&title=" + escape(titleMC.searchFF);
  34.    }
  35.    if(townMC.searchFF != townMC.defaultValue && townMC.searchFF != "")
  36.    {
  37.       _loc2_ = "®ion=" + escape(townMC.searchFF);
  38.    }
  39.    countryQuery = "&country=" + countryMC.strCountry;
  40.    var fullQuery = "http://www.themonth.press.net/results.php?subcat=all&certificate=all&theme=blueevents" + dateQuery + _loc1_ + _loc3_ + titleQuery + _loc2_ + sortQuery + runQuery + countryQuery;
  41.    openSearchPage(fullQuery);
  42. }
  43. onReady();
  44.